#ifndef __SPINLOCK_H
#define __SPINLOCK_H

#define SPIN_LOCK unsigned int

extern void lock_spinner(SPIN_LOCK *spinlock);
extern void unlock_spinner(SPIN_LOCK *spinlock);
extern int try_lock_spinner(SPIN_LOCK *spinlock);

#endif
